V2EX  ›  英汉词典

Critical Region

释义 Definition

(计算机科学/并发编程)临界区/关键区域:在多线程或多进程中,访问共享资源(如共享变量、文件、缓冲区)的那段代码或操作范围;为避免数据错误,通常需要保证同一时刻只有一个执行单元进入。常见近义术语是 critical section(临界区)

发音 Pronunciation (IPA)

/ˈkrɪtɪkəl ˈriːdʒən/

例句 Examples

The lock prevents two threads from entering the critical region at the same time.
锁可以防止两个线程同时进入临界区。

To ensure correctness under high concurrency, the program guards every critical region that updates shared state with a mutex and carefully defines the boundaries of that region.
为在高并发下保证正确性,程序用互斥锁保护每个会更新共享状态的临界区,并谨慎界定该区域的边界。

词源 Etymology

critical 源自希腊语 kritikos(“能判断的、关键的”),经拉丁语与法语进入英语,常引申为“决定成败的、需要谨慎处理的”。region 来自拉丁语 regio(“区域、范围”)。合在一起的 critical region 强调“对结果至关重要、必须被妥善控制的那一段区域/范围”,在并发语境中特指需要互斥访问的代码区域。

相关词 Related Words

文学与著作 Literary Works

  • Operating System Concepts(Silberschatz, Galvin, Gagne):在进程同步章节讨论临界区问题与互斥机制。
  • Modern Operating Systems(Andrew S. Tanenbaum):讲解临界区、竞态条件及相关同步原语。
  • The Art of Multiprocessor Programming(Herlihy, Shavit):在并行算法与同步结构中频繁涉及临界区/关键区域的设计与正确性。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   688 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 10ms · UTC 21:28 · PVG 05:28 · LAX 13:28 · JFK 16:28
♥ Do have faith in what you're doing.